package com.hoshiicloud.payment.util;

import java.io.OutputStream;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpOutputMessage;

/**
 * @program: hoshiicloud
 * @description:
 * @author: Mr.wu
 * @create: 2019-06-04 10:46
 **/
public class HttpOutputMessageImpl implements HttpOutputMessage {

    private OutputStream body;
    private HttpHeaders headers;

    public HttpOutputMessageImpl(OutputStream body, HttpHeaders headers) {
        this.body = body;
        this.headers = headers;
    }

    @Override
    public OutputStream getBody() {
        return body;
    }

    @Override
    public HttpHeaders getHeaders() {
        return headers;
    }
}
